<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form class="form-inline">
    <div class="form-group">
        <label for="productName">
            <font color="red">商品名称</font>
        </label>
        <input type="text" class="form-control" id="productName" placeholder="请输入用户名">
        <label for="startPrice">
            <font color="red">时间</font>
        </label>
        <input type="text" class="date form-control" id="startPrice" placeholder="请输入开始价格">
        <i class="glyphicon glyphicon-calendar"></i>
        <input type="text" class="date form-control" id="endPrice" placeholder="请输入结束价格">
    </div>
    <button type="button" class="btn btn-primary glyphicon glyphicon-search" onclick="shopTable()">搜索</button>
    <button type="button" class="btn btn-danger glyphicon glyphicon-remove" onclick="delUser()">删除店铺</button>

</form>
<table class="table" id="shopTable"></table>
</body>
<script>
    /*$(function () {
        tables();
    })
    /!**
     * 初始化页面加载所有用户店铺信息
     *!/
    function tables(){
        $("#userShopTable").bootstrapTable({
            url:'../manage/shopTable',
            type:'post',
            pagination:true, //开启分页
            //pageList:[1, 5, 10, 15,50],//分页组件
            pageNumber:1,
            pageSize:10,//默认每页条数
            sidePagination:'server',//分页方式：client客户端分页，server服务端分页
            striped:true,//条纹表格
            clickToSelect: true,
            queryParams:function(){
                return {
                    page:this.pageNumber,
                    rows:this.pageSize,
                    storeName:$("#userName").val(),
                    startDate:$("#startTime").val(),
                    endDate:$("#endTime").val()
                };
            },
            columns:[
                {checkbox:true},
                {field:'id',title:'用户id',width:80},
                {field:'userName',title:'用户昵称',width:80},
                {field:'userImg',title:'用户头像',width:80,formatter:function(value,row,index){
                        return "<img src='"+value+"' width='50px' height='50px'/>";
                    }},
                {field:'userBalance',title:'用户余额',width:80},
                {field:'storeName',title:'店铺名称',width:80},
                {field:'storeCreateTime',title:'店铺注册时间',width:80},
                {field:'userDate',title:'注册时间',width:80},
                {field:'userPhone',title:'用户手机号',width:80},
                {field:'aww',title:'修改',width:80,formatter:function(value,row,index){
                        return "<a href='javascript:findShopByStoreId("+row.storeId+")'>查看本店铺商品</a>";
                    }}
            ],
        })
    }
    /!*
       调查
   * *!/
    function searchUserShop() {
        $("#userShopTable").bootstrapTable('refresh');
    }*/
</script>
</html>